<!DOCTYPE html>
<html>
<head>
    <title>请假 - {$site_info.site_name|default=''}</title>
    <meta name="keywords" content=""/>
    <meta name="description" content="">
    <include file="public@head"/>
</head>

<body class="body-white" id="top">
<include file="public@nav" />
<div class="container tc-main">
    <div class="row">
        <div class="col-md-3">
            <include file="public@jiaxiaonav"/>
        </div>
        <div class="col-md-9">
            <!--标题 -->
            <div class="personal-nav" style="padding-bottom: 50px;">
                <h2>请假</h2>
                <a class="btncss" style="float:right;" href="{:url('student/FrontStudent/add')}" >请假</a>

            </div>
            <!--标题 -->

            <div class="clear"></div>

            <!--课程情况 -->
            <div class="personal-class">
                <ul>
                        <foreach name="leaves" item="vo">
                            <li>
                                <dl class="info">
                                    <dd><em>学生：</em><i>{$vo.student_name|default=''}</i></dd>
                                    <dd><em>学校：</em><i>{$vo.campus_name|default=''}</i></dd>
                                    <dd><em>班级：</em><i>{$vo.class_name|default=''}</i></dd>
                                    <dd><em>课程：</em><i>{$vo.course_name|default=''}</i></dd>
                                    <dd><em>请假课时：</em><i>{$vo.date|date="Y-m-d",###} {$vo.start_time}~{$vo.end_time} {$vo.week}</i></dd>
                                    <dd><em>授课老师：</em><i>{$vo.teacher_name|default=''}</i></dd>
                                    <dd><em>课时进度：</em><i>{$vo.schedule}/{$vo.course_hour}</i></dd>
                                    <dd>
                                        <em>补课方式：</em>
                                        <if condition="$vo.change_course eq 1">
                                            <i>申请录音</i>
                                            <elseif condition="$vo.change_course eq 2"/>
                                            <i>申请调课</i>
                                            <else/>
                                            <i>未申请</i>
                                        </if>
                                    </dd>
                                    <dd>
                                        <em>补课状态：</em>
                                        <if condition="$vo.status eq 0">
                                            <i>未处理</i>
                                        <elseif condition="$vo.status eq 1"/>
                                            <if condition="$vo.change_course eq 2">
                                                <i>调课申请成功</i>
                                            <elseif condition="$vo.change_course eq 1"/>
                                                <i>录音申请成功</i>
                                            </if>
                                        <elseif condition="$vo.status eq 2"/>
                                            <i>申请失败</i>
                                        <else/>
                                            <i></i>
                                        </if>
                                    </dd>
                                    <dd style="width:100%;">
                                        <em style="width:13.32%">请假原因：</em>
                                        <i style="width:86.66%">{$vo.reason}</i>
                                    </dd>
                                    <dd style="width:100%;">
                                        <em style="width:13.32%">调课信息：</em>
                                        <i style="width:86.66%">
                                        <if condition="isset($vo.adjust_info) && count($vo.adjust_info) gt 0">
                                            【{$vo.adjust_info.school_name}】【{$vo.adjust_info.class_name}】
                                            【{:date('Y-m-d',$vo.adjust_info.date)} {$vo.adjust_info.start_time}~{$vo.adjust_info.end_time} {$vo.adjust_info.week}】
                                        </if>
                                        </i>
                                    </dd>
                                    <!--<dd style="width:100%;">-->
                                        <!--<if condition="count($vo.adjust_info) elt 0 || $vo.date elt time()">-->
                                            <!--<a href="{:url('student/FrontStudent/cancel',array('id'=>$vo.id))}" class="btncss pull-right">取消请假</a>-->
                                        <!--</if>-->
                                    <!--</dd>-->
                                </dl>
                            </li>
                        </foreach>
                </ul>
                <div class="pagination">{$page|default=''}</div>
            </div>
        </div>
    </div>
</div>

<include file="public@footer" />

<include file="public@scripts" />
</body>
</html>